#define BOOST_FILESYSTEM_VERSION 3

#ifndef BOOST_FILESYSTEM_NO_DEPRECATED
#  define BOOST_FILESYSTEM_NO_DEPRECATED
#endif
#ifndef BOOST_SYSTEM_NO_DEPRECATED
#  define BOOST_SYSTEM_NO_DEPRECATED
#endif

#include <iostream>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/progress.hpp>
#include "../Lsfile.h"
using namespace std;
namespace fs = boost::filesystem;

#ifndef LIST_H_
#define LIST_H_

class List : Lsfile
{
	string name;
	string path;
	fs::path listpath;
	void create_ls(fs::path where, fs::path main);
public:
	bool ispath();
	void createlist();
	List(string name, string path) : name(name), path(path){
		listpath = fs::path(path);
		listpath = fs::system_complete(listpath);
		this->name+=".txt";
	}
	~List(){}
};

#endif /* LIST_H_ */
